<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>


<head>
	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>新增或修改组织</title>
</head>
<body>
<form:form id="orgForm" method="post" action="secure/org/save.html" modelAttribute="org" cssClass="form-horizontal form-offset-top">
	<form:hidden id="orgId" path="orgId"/>
	<form:hidden id="parentOrgId" path="parentSysOrg.orgId"/>
	<form:hidden id="treeCode" path="treeCode"/>
	<form:hidden id="parentTreeCode" path="parentSysOrg.treeCode"/>
	<div class="control-group ">
		<form:label cssClass="control-label" for="parentOrgName" path="parentSysOrg.name" >上级组织</form:label>
		
		<div id="menuContent" class="menuContent"  >
			<ul id="showTree" class="ztree" style="margin-top:0; width:150px;"></ul>
		</div>
		
		<div class="controls">
			<form:input id="parentOrgName" path="parentSysOrg.name"  readonly="true" onclick="showMenu();" cssClass="input-medium"/>
			<button type="button" class="btn" onclick="showMenu(); return false;">请选择</button>	
			<span class="help-inline"></span>
		</div>
	</div>
 		
 		<div class="control-group ">
		<form:label cssClass="control-label" for="name" path="name" >组织名称</form:label>
		<div class="controls">
			<form:input id="name" path="name" check-type="required" required-message="组织名称不能为空" cssClass="input-medium"/>
		</div>
	</div>
	
	<div class="control-group ">
		<form:label cssClass="control-label" for="remark" path="remark" >备注信息</form:label>
		<div class="controls">
			<form:textarea id="remark" path="remark" rows="50" cols="50" style="width:290px; height:135px;"/>
			<span class="help-inline"></span>
		</div>
	</div>
		
	<div class="control-group ">
		<div class="controls">
			<input id="saveBtnForOrg" type="button" class="btn" onclick="if(saveOrg()==false) return false;" value="保存"/>
			<input id="resetBtnForOrg" type="reset" class="btn" value="重置"/>
		</div>
	</div>
		<div class="alert" style="visibility: hidden;width: 55px;margin-left: 30%;"/>
	</form:form>
</body>
</html>	